package demo.game.chess.client.ui;


public class CellLabel {

	public static enum EnumColumnLabel {
		a, b, c, d, e, f, g, h;
	}

	/**
	 * 
	 * @param column
	 * @return conventional column label (a, b, c, d, e, f, g).
	 */
	public static String getColumnLabel(final int column) {
		return EnumColumnLabel.values()[column].name();
	}

	/**
	 * 
	 * @param row
	 * @return conventional row label (1 to 8, from top to bottom)
	 */
	public static String getRowLabel(final int row) {
		return String.valueOf(8 - row);
	}
}
